from  multiprocessing import Process

name = 'lucky'

def run():
    global name
    print(name)
    name = "张三"
    print(name)


if __name__ == '__main__':
    p = Process(target=run) # copy 一份 子进程不能修改主进程的变量
    p.start()
    p.join()
    print(name) # lucky